package pattern.singleton;

/**
 * <b>【枚举】【推荐】</b><br>
 * Lazy Loading: 是 <br>
 * 线程安全: 是 <br>
 *
 * @Author: wangxiaonan
 * @Date: 2019/3/12
 **/
public enum Singleton8 {
    INSTANCE;

    Singleton8() {
        System.out.println("------------- init Singleton8 -------------");
    }

    public void otherMethod() {
        System.out.println("do something");
    }
}
